package com.xzt.bookstore.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xzt.bookstore.entity.User;

/**
 * 用户服务接口
 */
public interface UserService extends IService<User> {
    
    /**
     * 根据用户名查找用户
     */
    User findByUsername(String username);
    
    /**
     * 注册用户
     */
    User register(String username, String password, String email, String phone, String nickname);
    
    /**
     * 验证用户密码
     */
    boolean validatePassword(String rawPassword, String encodedPassword);
}

